<!DOCTYPE html>
<!-- saved from url=(0048)http://code.google.com/p/support/wiki/WikiSyntax -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link rel="icon" type="image/vnd.microsoft.icon" href="http://www.gstatic.com/codesite/ph/images/phosting.ico">
 
 <script type="text/javascript">
 
 
 
 
 var codesite_token = "9580a521004b4254c1ce953c06fd5ed3";
 
 
 var CS_env = {"token":"9580a521004b4254c1ce953c06fd5ed3","assetHostPath":"http://www.gstatic.com/codesite/ph","domainName":null,"assetVersionPath":"http://www.gstatic.com/codesite/ph/10298440045045352121","projectName":"support","projectHomeUrl":"/p/support","absoluteBaseUrl":"http://code.google.com","relativeBaseUrl":"","urlPrefix":"p","loggedInUserEmail":"j.moyerman@gmail.com"};
 </script>
 
 
 <title>WikiSyntax - 
 support -
 
 The reference to the wiki syntax for Google Code projects - 
 User support for Google Project Hosting - Google Project Hosting
 </title>
 
 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 
 <meta name="ROBOTS" content="NOARCHIVE">
 
 <link type="text/css" rel="stylesheet" href="./WikiSyntax_files/ph_core.css">
 
 <link type="text/css" rel="stylesheet" href="./WikiSyntax_files/ph_detail.css">
 
 
 
 <link type="application/atom+xml" rel="alternate" href="http://code.google.com/feeds/p/support/svnchanges/basic?path=/wiki/WikiSyntax.wiki">
 
 
<!--[if IE]>
 <link type="text/css" rel="stylesheet" href="http://www.gstatic.com/codesite/ph/10298440045045352121/css/d_ie.css" >
<![endif]-->
 <style type="text/css">
 .menuIcon.off { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 -42px }
 .menuIcon.on { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 -28px }
 .menuIcon.down { background: no-repeat url(http://www.gstatic.com/codesite/ph/images/dropdown_sprite.gif) 0 0; }
 
 
 #maincol {
 padding-top: 0;
 padding-bottom: 0;
 }

 </style>
<script type="text/javascript" async="" src="./WikiSyntax_files/ga.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/document_iterator.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/find_proxy.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/get_html_text.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/global_constants.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/name_injection_builder.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/number_injection_builder.js"></script><script src="chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/string_finder.js"></script><meta name="document_iterator.js"><meta name="find_proxy.js"><meta name="get_html_text.js"><meta name="global_constants.js"><meta name="name_injection_builder.js"><meta name="number_injection_builder.js"><meta name="string_finder.js"></head>
<body class="t6">
 <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(
 ['siteTracker._setAccount', 'UA-18071-1'],
 ['siteTracker._trackPageview']);
 
 _gaq.push(
 ['projectTracker._setAccount', 'UA-1869319-3'],
 ['projectTracker._trackPageview']);
 
 (function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
 })();
 </script>
<div class="headbg">
 <div id="gaia">
 

 <span>
 
 
 <a href="http://code.google.com/p/support/wiki/WikiSyntax#" id="multilogin-dropdown" onclick="return false;"><u><b>j.moyerman@gmail.com</b></u> <small>▼</small></a>
 
 
 | <a href="http://code.google.com/u/@VxhQQ1NTDhdHXwF1/" id="projects-dropdown" onclick="return false;"><u>My favorites</u> <small>▼</small></a>
 | <a href="http://code.google.com/u/@VxhQQ1NTDhdHXwF1/" onclick="_CS_click(&#39;/gb/ph/profile&#39;);" title="Profile, Updates, and Settings"><u>Profile</u></a>
 | <a href="https://www.google.com/accounts/Logout?continue=http%3A%2F%2Fcode.google.com%2Fp%2Fsupport%2Fwiki%2FWikiSyntax" onclick="_CS_click(&#39;/gb/ph/signout&#39;);"><u>Sign out</u></a>
 
 </span>

 </div>
 <div class="gbh" style="left: 0pt;"></div>
 <div class="gbh" style="right: 0pt;"></div>
 
 
 <div style="height: 1px"></div>
<!--[if lte IE 7]>
<div style="text-align:center;">
Your version of Internet Explorer is not supported. Try a browser that
contributes to open source, such as <a href="http://www.firefox.com">Firefox</a>,
<a href="http://www.google.com/chrome">Google Chrome</a>, or
<a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>.
</div>
<![endif]-->




 <table style="padding:0px; margin: 0px 0px 10px 0px; width:100%" cellpadding="0" cellspacing="0">
 <tbody><tr style="height: 58px;">
 
 <td id="plogo">
 <a href="http://code.google.com/p/support/">
 
 
 <img src="./WikiSyntax_files/logo" alt="Logo">
 
 </a>
 </td>
 
 <td style="padding-left: 0.5em">
 
 <div id="pname">
 <a href="http://code.google.com/p/support/">support</a>
 </div>
 
 <div id="psum">
 <a id="project_summary_link" href="http://code.google.com/p/support/">User support for Google Project Hosting</a>
 
 </div>
 
 
 </td>
 <td style="white-space:nowrap;text-align:right; vertical-align:bottom;">
 
 <form action="http://code.google.com/hosting/search">
 <input size="30" name="q" value="" type="text">
 <input type="submit" name="projectsearch" value="Search projects">
 </form>
 
 </td></tr>
 </tbody></table>

</div>

 
<div id="mt" class="gtb"> 
 <a href="http://code.google.com/p/support/" class="tab ">Project&nbsp;Home</a>
 
 
 
 
 
 
 <a href="http://code.google.com/p/support/wiki/GettingStarted?tm=6" class="tab active">Wiki</a>
 
 
 
 
 
 <a href="http://code.google.com/p/support/issues/list" class="tab ">Issues</a>
 
 
 
 
 
 <a href="http://code.google.com/p/support/source/checkout" class="tab ">Source</a>
 
 
 
 
 
 <div class="gtbc"></div>
</div>
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0" class="st">
 <tbody><tr>
 
 
 
 <td class="subt">
 <div class="issueDetail">
<div class="isf">
 
 <span class="inIssueList"> 
 <span>Search</span>
 <form action="http://code.google.com/p/support/w/list" method="GET" style="display:inline">
 <select id="can" name="can" style="font-size:92%">
 <option disabled="disabled">Search within:</option>
 
 <option value="1">&nbsp;All wiki pages</option>
 <option value="3">&nbsp;Featured pages</option>
 <option value="2" selected="selected">&nbsp;Current pages</option>
 
 
 <option value="5">&nbsp;My starred pages</option>
 
 <option value="4">&nbsp;Deprecated pages</option>
 
 </select>
 <span>for</span>
 <span id="qq"><input type="text" size="38" id="searchq" name="q" value="" autocomplete="off" style="font-size:92%"></span>
 
 
 <input type="submit" value="Search" style="font-size:92%">
 </form>
 </span>

 
 
 
 
 
 
 

</div>
</div>

 </td>
 
 
 
 
 
 
 <td align="right" valign="top" class="bevel-right"></td>
 </tr>
</tbody></table>
<script type="text/javascript">
 var cancelBubble = false;
 function _go(url) { document.location = url; }
</script>


<div id="maincol" style="padding:0 3px 3px 0; margin:0">

 
<!-- IE -->






 
<style type="text/css">
 #wikimaincol { padding-top: 6px; padding-left:1em}
 #sidebarcontainer {
 padding: 1.5em 2px 2px 2px;
 min-width: 15em;
 max-width: 20em;
 overflow:hidden;
}
 .sidebartop ul { margin:0 0 0 .5em; padding-left:0 !important; list-style:none}
 .sidebartop ul ul { margin-left:1em; padding-left:0; list-style:none; display:none}
 .sidebartop li { margin:0 0 2px 0; padding:1px; padding-left:14px; cursor:pointer}
 .sidebartop li a { padding:2px}
 .sidebartop li { background: url(http://www.gstatic.com/codesite/ph/images/plus.gif) no-repeat 1px 3px}
 .sidebartop li.treeopen { background: url(http://www.gstatic.com/codesite/ph/images/minus.gif) no-repeat 1px 3px}
 .sidebartop li.treeleaf { background:none}
 .currentpagelink { 
 font-weight: bold;
 text-decoration: none;
 color: black !important; 
 background: #c3d9ff;
 }
 .sidebartop ul.treeleafcontainer { display:block;}
 .sidebarcontent { 
 vertical-align:top;
 padding-right: 3px;
 border-right: 2px solid #ccc;
 }
</style>



 <style type="text/css">
 .delcom { background: #e8e8e8 }
 .commentcontent {
 margin: 2em;
 padding: 0px 10px;
 width: 66em;
 }
 .artifactcomment {
 border-top: 3px solid #c3d9ff;
 }
 #commentform {
 border-top: 3px solid #c3d9ff;
 }
 </style>

<div id="wikipage">
<table>
 <tbody><tr>
 
 
 <td class="sidebarcontent">
 <div class="vt expand" id="wikisidebar">
 <div>
 
 <div style="float:right;">
 <a class="ifExpand" style="font-size:130%; color:blue; text-decoration:none" href="http://code.google.com/p/support/wiki/WikiSyntax#" onclick="_DW_toggleSidebar(&#39;&#39;, &#39;support&#39;, this, &#39;9580a521004b4254c1ce953c06fd5ed3&#39;); return false;" title="Hide sidebar"><b>‹‹</b></a>
 </div>
 <div class="ifCollapse" style="padding:0 2px">
 <a style="font-size:130%; color:blue; text-decoration:none" href="http://code.google.com/p/support/wiki/WikiSyntax#" onclick="_DW_toggleSidebar(&#39;&#39;, &#39;support&#39;, this, &#39;9580a521004b4254c1ce953c06fd5ed3&#39;); return false;" title="Show sidebar"><b>››</b></a>
 </div>
 
 
 <div id="sidebarcontainer" class="sidebartop ifExpand">
 <ul class="treeleafcontainer"><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/WhatsNew">Whats New?</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/GettingStarted">Getting Started</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/HowToJoinAProject">Join a project</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/FAQ">Project Hosting FAQ</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/MakingHostingBetter">Making hosting better</a> </li><li class="treeopen">Wiki </li><ul class="treeleafcontainer"><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/WikiFAQ">Wiki FAQ</a> </li><li class="treeleaf"><a href="./WikiSyntax_files/WikiSyntax.htm" class="currentpagelink">Wiki Syntax</a> </li><li><a href="http://code.google.com/p/support/wiki/WorkingWithGoogleGadgets">Google Gadgets</a> </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/InterestingDeveloperGadgets">Interesting Gadgets</a> </li></ul></ul><li>Issues  </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/IssueTrackerFAQ">Issue Tracker FAQ</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/IssueTracker">Issue Tracker</a> </li><li>Issue Tracker Data API (<a href="http://code.google.com/p/support/wiki/IssueTrackerAPITerms">Terms</a>) </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/IssueTrackerAPI">Issue Tracker API</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/IssueTrackerAPIJava">Issue Tracker API Java</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/IssueTrackerAPIPython">Issue Tracker API Python</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/IssueTrackerAPIReference">Issue Tracker API Reference</a> </li></ul></ul><li>Downloads </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/DownloadsFAQ">Downloads FAQ</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/ScriptedUploads">Scripted Uploads</a> </li></ul><li>Source </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/CodeReviews">CodeReviews</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/ChoosingAVersionControlSystem">Choosing a VCS</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/PostCommitWebHooks">PostCommitWebHooks</a> </li><li>Mercurial </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/MercurialFAQ">Mercurial FAQ</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/ConvertingSvnToHg">SVN Conversion</a> </li></ul><li>Git </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/ExportingToGit">Exporting to Git</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/ImportingFromGit">Importing from Git</a> </li></ul><li>Subversion </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/SubversionFAQ">Subversion FAQ</a> </li></ul></ul><li>Administer </li><ul><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/InboundEmail">Inbound Email</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/UserGroups">User Groups</a> </li><li class="treeleaf"><a href="http://code.google.com/p/support/wiki/Permissions">Permissions</a> </li></ul></ul>
 </div>
 </div>
</div>

 </td>
 
 <td style="vertical-align:top; padding-left:5px">
 
 <div id="wikiheader">
 
 <img width="15" height="15" id="star_img" src="./WikiSyntax_files/star_off.gif" style="cursor:pointer" onclick="_CS_toggleStar(this,
 &#39;&#39;,
 {&#39;scope&#39;: &#39;wiki&#39;,
 &#39;user&#39;: &#39;_CURRENT_USER&#39;,
 &#39;item&#39;: &#39;support:WikiSyntax&#39;,
 &#39;token&#39;: codesite_token
 });">
 
 <span style="font-size:120%;font-weight:bold">WikiSyntax</span>
 &nbsp;
 <div> 
 
 <i>The reference to the wiki syntax for Google Code projects</i>
 
 
 <br>
 
 <a class="label" style="padding-top: 2px" href="http://code.google.com/p/support/w/list?q=label:Restrict-AddWikiComment-Commit" title="">Restrict-AddWikiComment-Commit</a>
 
 
 
 <div id="wikiauthor" style="float:right">
 Updated <span title="Mon Mar 14 21:31:52 2011">
 Mar 14, 2011</span>
 
 by <a style="white-space: nowrap" href="http://code.google.com/u/@WBVQRVNZDxRNWgJ%2F/">apa...@google.com</a>
 
 </div>
 </div>
 </div>
 
 <div id="wikicontent">
 <div class="vt" id="wikimaincol">
 <h1><a name="Wiki_Syntax"></a>Wiki Syntax<a href="http://code.google.com/p/support/wiki/WikiSyntax#Wiki_Syntax" class="section_anchor"></a></h1><p></p><ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Wiki_Syntax">Wiki Syntax</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Introduction">Introduction</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Pragmas">Pragmas</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Wiki-style_markup">Wiki-style markup</a></li><ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Paragraphs">Paragraphs</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Typeface">Typeface</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Code">Code</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Headings">Headings</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Dividers">Dividers</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Lists">Lists</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Quoting">Quoting</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Links">Links</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Tables">Tables</a></li></ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#HTML_support">HTML support</a></li><ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Escaping_HTML_Tags">Escaping HTML Tags</a></li></ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Comments">Comments</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Gadgets">Gadgets</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Videos">Videos</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Navigation">Navigation</a></li><ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Table_of_Contents">Table of Contents</a></li><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Side_navigation">Side navigation</a></li></ul><li><a href="http://code.google.com/p/support/wiki/WikiSyntax#Localizing_Wiki_Content">Localizing Wiki Content</a></li></ul>  <p></p><h1><a name="Introduction"></a>Introduction<a href="http://code.google.com/p/support/wiki/WikiSyntax#Introduction" class="section_anchor"></a></h1><p>Each wiki page is stored in a .wiki file under the /wiki directory in a project's repository.  Each file's name is the same as the wiki page name.  And, each wiki file consists of optional pragma lines followed by the content of the page. </p><h1><a name="Pragmas"></a>Pragmas<a href="http://code.google.com/p/support/wiki/WikiSyntax#Pragmas" class="section_anchor"></a></h1><p>Optional pragma lines provide metadata about the page and how it should be displayed. These lines are only processed if they appear at the top of the file.  Each pragma line begins with a pound-sign (#) and the pragma name, followed by a value. </p><p></p><table class="wikitable"><tbody><tr><td style="border: 1px solid #ccc; padding: 5px;"> <strong>Pragma</strong>   </td><td style="border: 1px solid #ccc; padding: 5px;"> <strong>Value</strong>  </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> #summary   </td><td style="border: 1px solid #ccc; padding: 5px;"> One-line summary of the page </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> #labels    </td><td style="border: 1px solid #ccc; padding: 5px;"> Comma-separated list of labels (filled in automatically via the web UI) </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> #sidebar   </td><td style="border: 1px solid #ccc; padding: 5px;"> See <a href="http://code.google.com/p/support/wiki/WikiSyntax#Side_navigation" rel="nofollow">Side navigation</a> </td></tr> </tbody></table><p></p><h1><a name="Wiki-style_markup"></a>Wiki-style markup<a href="http://code.google.com/p/support/wiki/WikiSyntax#Wiki-style_markup" class="section_anchor"></a></h1><h2><a name="Paragraphs"></a>Paragraphs<a href="http://code.google.com/p/support/wiki/WikiSyntax#Paragraphs" class="section_anchor"></a></h2><p>Use one or more blank lines to separate paragraphs.  </p><h2><a name="Typeface"></a>Typeface<a href="http://code.google.com/p/support/wiki/WikiSyntax#Typeface" class="section_anchor"></a></h2><p></p><table class="wikitable"><tbody><tr><td style="border: 1px solid #ccc; padding: 5px;"> Name/Sample</td><td style="border: 1px solid #ccc; padding: 5px;"> <strong> Markup </strong>       </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;">  <i>italic</i>       </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>_italic_</tt>       </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;">  <strong>bold</strong>         </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>*bold*</tt>         </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;">  <tt>code</tt>         </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>`code`</tt>     </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;">  <tt>code</tt>     </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>{{{code}}}</tt>     </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;">  <sup>super</sup>script  </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>^super^script</tt>  </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;">  <sub>sub</sub>script  </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>,,sub,,script</tt>  </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> <span style="text-decoration: line-through">strikeout</span>   </td><td style="border: 1px solid #ccc; padding: 5px;"> <tt>~~strikeout~~</tt>  </td></tr> </tbody></table><p></p><p>You can mix these typefaces in some ways: </p><p></p><table class="wikitable"><tbody><tr><td style="border: 1px solid #ccc; padding: 5px;">       <strong>Markup</strong>                    </td><td style="border: 1px solid #ccc; padding: 5px;">        <strong>Result</strong>                 </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> <tt>_*bold* in italics_</tt>             </td><td style="border: 1px solid #ccc; padding: 5px;"> <i><strong>bold</strong> in italics</i>             </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> <tt>*_italics_ in bold*</tt>             </td><td style="border: 1px solid #ccc; padding: 5px;"> <strong><i>italics</i> in bold</strong>             </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> <tt>*~~strike~~ works too*</tt>          </td><td style="border: 1px solid #ccc; padding: 5px;"> <strong><span style="text-decoration: line-through">strike</span> works too</strong>          </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> <tt>~~as well as _this_ way round~~</tt> </td><td style="border: 1px solid #ccc; padding: 5px;"> <span style="text-decoration: line-through">as well as <i>this</i> way round</span> </td></tr> </tbody></table><p></p><h2><a name="Code"></a>Code<a href="http://code.google.com/p/support/wiki/WikiSyntax#Code" class="section_anchor"></a></h2><p>If you have a multiline code block that you want to display verbatim, use the multiline code delimiter: </p><pre class="prettyprint"><span class="pun">{{{</span><span class="pln"><br></span><span class="kwd">def</span><span class="pln"> fib</span><span class="pun">(</span><span class="pln">n</span><span class="pun">):</span><span class="pln"><br>&nbsp; </span><span class="kwd">if</span><span class="pln"> n </span><span class="pun">==</span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="kwd">or</span><span class="pln"> n </span><span class="pun">==</span><span class="pln"> </span><span class="lit">1</span><span class="pun">:</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="kwd">return</span><span class="pln"> n<br>&nbsp; </span><span class="kwd">else</span><span class="pun">:</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="com"># This recursion is not good for large numbers.</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="kwd">return</span><span class="pln"> fib</span><span class="pun">(</span><span class="pln">n</span><span class="pun">-</span><span class="lit">1</span><span class="pun">)</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> fib</span><span class="pun">(</span><span class="pln">n</span><span class="pun">-</span><span class="lit">2</span><span class="pun">)</span><span class="pln"><br></span><span class="pun">}}}</span></pre><p>Which results in: </p><pre class="prettyprint"><span class="kwd">def</span><span class="pln"> fib</span><span class="pun">(</span><span class="pln">n</span><span class="pun">):</span><span class="pln"><br>&nbsp; </span><span class="kwd">if</span><span class="pln"> n </span><span class="pun">==</span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="kwd">or</span><span class="pln"> n </span><span class="pun">==</span><span class="pln"> </span><span class="lit">1</span><span class="pun">:</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="kwd">return</span><span class="pln"> n<br>&nbsp; </span><span class="kwd">else</span><span class="pun">:</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="com"># This recursion is not good for large numbers.</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="kwd">return</span><span class="pln"> fib</span><span class="pun">(</span><span class="pln">n</span><span class="pun">-</span><span class="lit">1</span><span class="pun">)</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> fib</span><span class="pun">(</span><span class="pln">n</span><span class="pun">-</span><span class="lit">2</span><span class="pun">)</span></pre><h2><a name="Headings"></a>Headings<a href="http://code.google.com/p/support/wiki/WikiSyntax#Headings" class="section_anchor"></a></h2><pre class="prettyprint"><span class="pun">=</span><span class="pln"> </span><span class="typ">Heading</span><span class="pln"> </span><span class="pun">=</span><span class="pln"><br></span><span class="pun">==</span><span class="pln"> </span><span class="typ">Subheading</span><span class="pln"> </span><span class="pun">==</span><span class="pln"><br></span><span class="pun">===</span><span class="pln"> </span><span class="typ">Level</span><span class="pln"> </span><span class="lit">3</span><span class="pln"> </span><span class="pun">===</span><span class="pln"><br></span><span class="pun">====</span><span class="pln"> </span><span class="typ">Level</span><span class="pln"> </span><span class="lit">4</span><span class="pln"> </span><span class="pun">====</span><span class="pln"><br></span><span class="pun">=====</span><span class="pln"> </span><span class="typ">Level</span><span class="pln"> </span><span class="lit">5</span><span class="pln"> </span><span class="pun">=====</span><span class="pln"><br></span><span class="pun">======</span><span class="pln"> </span><span class="typ">Level</span><span class="pln"> </span><span class="lit">6</span><span class="pln"> </span><span class="pun">======</span></pre><h2><a name="Dividers"></a>Dividers<a href="http://code.google.com/p/support/wiki/WikiSyntax#Dividers" class="section_anchor"></a></h2><p>Four or more dashes on a line by themselves results in a horizontal rule. </p><h2><a name="Lists"></a>Lists<a href="http://code.google.com/p/support/wiki/WikiSyntax#Lists" class="section_anchor"></a></h2><p>Google Code wikis support both bulleted and numbered lists. A list must be indented at least one space to be recognized as such. You can also nest lists one within the other by appropriate use of indenting: </p><pre class="prettyprint"><span class="typ">The</span><span class="pln"> following </span><span class="kwd">is</span><span class="pun">:</span><span class="pln"><br>&nbsp; </span><span class="pun">*</span><span class="pln"> A list<br>&nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="typ">Of</span><span class="pln"> bulleted items<br>&nbsp; &nbsp; </span><span class="com"># This is a numbered sublist</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="com"># Which is done by indenting further</span><span class="pln"><br>&nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="typ">And</span><span class="pln"> back to the main bulleted list<br><br>&nbsp;</span><span class="pun">*</span><span class="pln"> </span><span class="typ">This</span><span class="pln"> </span><span class="kwd">is</span><span class="pln"> also a list<br>&nbsp;</span><span class="pun">*</span><span class="pln"> </span><span class="typ">With</span><span class="pln"> a single leading space<br>&nbsp;</span><span class="pun">*</span><span class="pln"> </span><span class="typ">Notice</span><span class="pln"> that it </span><span class="kwd">is</span><span class="pln"> rendered<br>&nbsp; </span><span class="com"># At the same levels</span><span class="pln"><br>&nbsp; </span><span class="com"># As the above lists.</span><span class="pln"><br>&nbsp;</span><span class="pun">*</span><span class="pln"> </span><span class="typ">Despite</span><span class="pln"> the different indentation levels</span><span class="pun">.</span></pre><p>The following is: </p><ul><li>A list </li><li>Of bulleted items </li><ol><li>This is a numbered sublist </li><li>Which is done by indenting further </li></ol><li>And back to the main bulleted list </li></ul><p></p><ul><li>This is also a list </li><li>With a single leading space </li><li>Notice that it is rendered </li><ol><li>At the same levels </li><li>As the above lists. </li></ol><li>Despite the different indentation levels. </li></ul><h2><a name="Quoting"></a>Quoting<a href="http://code.google.com/p/support/wiki/WikiSyntax#Quoting" class="section_anchor"></a></h2><p>Block quotes place emphasis on a particular extract of text in your page. Block quotes are created by indenting a paragraph by at least one space: </p><pre class="prettyprint"><span class="typ">Someone</span><span class="pln"> once said</span><span class="pun">:</span><span class="pln"><br><br>&nbsp; </span><span class="typ">This</span><span class="pln"> sentence will be quoted </span><span class="kwd">in</span><span class="pln"> the future </span><span class="kwd">as</span><span class="pln"> the canonical example<br>&nbsp; of a quote that </span><span class="kwd">is</span><span class="pln"> so important that it should be visually separate<br>&nbsp; </span><span class="kwd">from</span><span class="pln"> the rest of the text </span><span class="kwd">in</span><span class="pln"> which it appears</span><span class="pun">.</span></pre><p>Someone once said: </p><blockquote>This sentence will be quoted in the future as the canonical example 
of a quote that is so important that it should be visually separate 
from the rest of the text in which it appears. 
</blockquote><h2><a name="Links"></a>Links<a href="http://code.google.com/p/support/wiki/WikiSyntax#Links" class="section_anchor"></a></h2><p>Links are central to the wiki principle, as they create the web of content. Google Code wiki permits both internal (within the wiki) and external links, and in some cases automatically creates a link when it recognizes either a WikiWord or an URL. </p><h3><a name="Internal_wiki_links"></a>Internal wiki links<a href="http://code.google.com/p/support/wiki/WikiSyntax#Internal_wiki_links" class="section_anchor"></a></h3><p>Internal links within a wiki are created using the syntax below. If you add a wiki link to a page that does not exist, the link will appear with a LittleLink<a href="./WikiSyntax_files/WikiSyntax.htm">?</a> to project committers and owners. Clicking that link will take you to the page creation form where you can enter content for that page. </p><p>If you are not logged in, wiki links that point to non-existent pages will appear as plain text, without the link to the page creation form. When you create the target page, the link will become a normal hyperlink for all viewers of the page. </p><pre class="prettyprint"><span class="typ">WikiSyntax</span><span class="pln"> </span><span class="kwd">is</span><span class="pln"> identified </span><span class="kwd">and</span><span class="pln"> linked automatically<br><br></span><span class="typ">Wikipage</span><span class="pln"> </span><span class="kwd">is</span><span class="pln"> </span><span class="kwd">not</span><span class="pln"> identified</span><span class="pun">,</span><span class="pln"> so </span><span class="kwd">if</span><span class="pln"> you have a page named </span><span class="pun">[</span><span class="typ">Wikipage</span><span class="pun">]</span><span class="pln"> you<br>need to link it explicitly</span><span class="pun">.</span><span class="pln"><br><br></span><span class="typ">If</span><span class="pln"> the </span><span class="typ">WikiSyntax</span><span class="pln"> page </span><span class="kwd">is</span><span class="pln"> actually about reindeers</span><span class="pun">,</span><span class="pln"> you can provide a<br>description</span><span class="pun">,</span><span class="pln"> so that people know you are actually linking to a page on<br></span><span class="pun">[</span><span class="typ">WikiSyntax</span><span class="pln"> reindeer flotillas</span><span class="pun">].</span><span class="pln"><br><br></span><span class="typ">If</span><span class="pln"> you want to mention </span><span class="pun">!</span><span class="typ">WikiSyntax</span><span class="pln"> without it being autolinked</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">use</span><span class="pln"> an<br>exclamation mark to prevent linking</span><span class="pun">.</span></pre><p><a href="./WikiSyntax_files/WikiSyntax.htm">WikiSyntax</a> is identified and linked automatically </p><p>Wikipage is not identified, so if you have a page named Wikipage you need to link it explicitly. </p><p>If the <a href="./WikiSyntax_files/WikiSyntax.htm">WikiSyntax</a> page is actually about reindeers, you can provide a description, so that people know you are actually linking to a page on <a href="./WikiSyntax_files/WikiSyntax.htm">reindeer flotillas</a>. </p><p>If you want to mention WikiSyntax without it being autolinked, use an exclamation mark to prevent linking. </p><h3><a name="Links_to_anchors_within_a_page"></a>Links to anchors within a page<a href="http://code.google.com/p/support/wiki/WikiSyntax#Links_to_anchors_within_a_page" class="section_anchor"></a></h3><p>Each heading defines a HTML anchor with the same name as the heading, but with spaces replaced by underscores. You can create a link to a specific heading on a page like this: </p><pre class="prettyprint"><span class="pun">[</span><span class="typ">WikiSyntax</span><span class="com">#Wiki-style_markup]</span></pre><p>And it will render as: <a href="http://code.google.com/p/support/wiki/WikiSyntax#Wiki-style_markup">WikiSyntax#Wiki-style_markup</a>. </p><h3><a name="Links_to_external_pages"></a>Links to external pages<a href="http://code.google.com/p/support/wiki/WikiSyntax#Links_to_external_pages" class="section_anchor"></a></h3><p>You can of course link to external pages from your own wiki pages, using a syntax similar to that for internal links: </p><pre class="prettyprint"><span class="typ">Plain</span><span class="pln"> </span><span class="typ">URLs</span><span class="pln"> such </span><span class="kwd">as</span><span class="pln"> http</span><span class="pun">:</span><span class="com">//www.google.com/ or ftp://ftp.kernel.org/ are</span><span class="pln"><br>automatically made </span><span class="kwd">into</span><span class="pln"> links</span><span class="pun">.</span><span class="pln"><br><br></span><span class="typ">You</span><span class="pln"> can also provide some descriptive text</span><span class="pun">.</span><span class="pln"> </span><span class="typ">For</span><span class="pln"> example</span><span class="pun">,</span><span class="pln"> the following<br>link points to the </span><span class="pun">[</span><span class="pln">http</span><span class="pun">:</span><span class="com">//www.google.com Google home page].</span><span class="pln"><br><br></span><span class="typ">If</span><span class="pln"> your link points to an image</span><span class="pun">,</span><span class="pln"> it will </span><span class="kwd">get</span><span class="pln"> inserted </span><span class="kwd">as</span><span class="pln"> an image tag<br></span><span class="kwd">into</span><span class="pln"> the page</span><span class="pun">:</span><span class="pln"><br><br>http</span><span class="pun">:</span><span class="com">//code.google.com/images/code_sm.png</span><span class="pln"><br><br></span><span class="typ">You</span><span class="pln"> can also make the image </span><span class="kwd">into</span><span class="pln"> a link</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">by</span><span class="pln"> setting the image URL </span><span class="kwd">as</span><span class="pln"><br>the description of the URL you want to link</span><span class="pun">:</span><span class="pln"><br><br></span><span class="pun">[</span><span class="pln">http</span><span class="pun">:</span><span class="com">//code.google.com/ http://code.google.com/images/code_sm.png]</span></pre><p>Plain URLs such as <a href="http://www.google.com/" rel="nofollow">http://www.google.com/</a> or <a href="ftp://ftp.kernel.org/" rel="nofollow">ftp://ftp.kernel.org/</a> are automatically made into links. </p><p>You can also provide some descriptive text. For example, the following link points to the <a href="http://www.google.com/" rel="nofollow">Google home page</a>. </p><p>You can also make the image into a link, by setting the image URL as the description of the URL you want to link: </p><pre class="prettyprint"><span class="pun">[</span><span class="pln">http</span><span class="pun">:</span><span class="com">//code.google.com/ http://code.google.com/images/code_sm.png]</span></pre><p><a href="http://code.google.com/" rel="nofollow"><img src="./WikiSyntax_files/code_sm.png"></a> </p><h3><a name="Links_to_images"></a>Links to images<a href="http://code.google.com/p/support/wiki/WikiSyntax#Links_to_images" class="section_anchor"></a></h3><p>If your link points to an image (that is, if it ends in <tt>.png</tt>, <tt>.gif</tt>, <tt>.jpg</tt> or <tt>.jpeg</tt>), it will get inserted as an image into the page: </p><pre class="prettyprint"><span class="pln">http</span><span class="pun">:</span><span class="com">//code.google.com/images/code_sm.png</span></pre><p><img src="./WikiSyntax_files/code_sm.png"> </p><p>If the image is produced by a server-side script, you may need to add a nonsense query string parameter to the end so that the URL ends with a supported image filename extension. </p><pre class="prettyprint"><span class="pln">http</span><span class="pun">:</span><span class="com">//chart.apis.google.com/chart?chs=200x125&amp;chd=t:48.14,33.79,19.77|83.18,18.73,12.04&amp;cht=bvg&amp;nonsense=something_that_ends_with.png</span></pre><p><img src="./WikiSyntax_files/chart"> </p><h2><a name="Tables"></a>Tables<a href="http://code.google.com/p/support/wiki/WikiSyntax#Tables" class="section_anchor"></a></h2><p>Tables are created by entering the content of each cell separated by <tt>||</tt> delimiters. You can insert other inline wiki syntax in table cells, including typeface formatting and links. </p><pre class="prettyprint"><span class="pun">||</span><span class="pln"> </span><span class="pun">*</span><span class="typ">Year</span><span class="pun">*</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="pun">*</span><span class="typ">Temperature</span><span class="pln"> </span><span class="pun">(</span><span class="pln">low</span><span class="pun">)*</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="pun">*</span><span class="typ">Temperature</span><span class="pln"> </span><span class="pun">(</span><span class="pln">high</span><span class="pun">)*</span><span class="pln"> </span><span class="pun">||</span><span class="pln"><br></span><span class="pun">||</span><span class="pln"> </span><span class="lit">1900</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="pun">-</span><span class="lit">10</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="lit">25</span><span class="pln"> </span><span class="pun">||</span><span class="pln"><br></span><span class="pun">||</span><span class="pln"> </span><span class="lit">1910</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="pun">-</span><span class="lit">15</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="lit">30</span><span class="pln"> </span><span class="pun">||</span><span class="pln"><br></span><span class="pun">||</span><span class="pln"> </span><span class="lit">1920</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="pun">-</span><span class="lit">10</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="lit">32</span><span class="pln"> </span><span class="pun">||</span><span class="pln"><br></span><span class="pun">||</span><span class="pln"> </span><span class="lit">1930</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> _N</span><span class="pun">/</span><span class="pln">A_ </span><span class="pun">||</span><span class="pln"> _N</span><span class="pun">/</span><span class="pln">A_ </span><span class="pun">||</span><span class="pln"><br></span><span class="pun">||</span><span class="pln"> </span><span class="lit">1940</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="pun">-</span><span class="lit">2</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> </span><span class="lit">40</span><span class="pln"> </span><span class="pun">||</span></pre><p></p><table class="wikitable"><tbody><tr><td style="border: 1px solid #ccc; padding: 5px;"> <strong>Year</strong> </td><td style="border: 1px solid #ccc; padding: 5px;"> <strong>Temperature (low)</strong> </td><td style="border: 1px solid #ccc; padding: 5px;"> <strong>Temperature (high)</strong> </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> 1900 </td><td style="border: 1px solid #ccc; padding: 5px;"> -10 </td><td style="border: 1px solid #ccc; padding: 5px;"> 25 </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> 1910 </td><td style="border: 1px solid #ccc; padding: 5px;"> -15 </td><td style="border: 1px solid #ccc; padding: 5px;"> 30 </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> 1920 </td><td style="border: 1px solid #ccc; padding: 5px;"> -10 </td><td style="border: 1px solid #ccc; padding: 5px;"> 32 </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> 1930 </td><td style="border: 1px solid #ccc; padding: 5px;"> <i>N/A</i> </td><td style="border: 1px solid #ccc; padding: 5px;"> <i>N/A</i> </td></tr> <tr><td style="border: 1px solid #ccc; padding: 5px;"> 1940 </td><td style="border: 1px solid #ccc; padding: 5px;"> -2 </td><td style="border: 1px solid #ccc; padding: 5px;"> 40 </td></tr> </tbody></table><p></p><h1><a name="HTML_support"></a>HTML support<a href="http://code.google.com/p/support/wiki/WikiSyntax#HTML_support" class="section_anchor"></a></h1><p>To aid in the presentation of a wiki page there is some support for HTML. HTML tags are only supported in wiki pages, not in page comments. </p><p>HTML syntax can be used in conjunction with wiki syntax, but it is recommended against doing so where possible.<!--Also, avoid blank lines between list items.--> </p><p>The following HTML tags and attributes are currently supported: </p><p></p><table border="1"> <thead><tr><th>HTML Tag</th><th>Supported Attributes</th></tr></thead> <tbody> <tr><td>a</td><td>title dir lang href</td></tr> <tr><td>b</td><td>title dir lang</td></tr> <tr><td>br</td><td>title dir lang</td></tr> <tr><td>blockquote</td><td>title dir lang</td></tr> <tr><td>code</td><td>title dir lang language <tt>[1]</tt></td></tr>       <tr><td>dd</td><td>title dir lang</td></tr> <tr><td>div</td><td>title dir lang</td></tr> <tr><td>dl</td><td>title dir lang</td></tr>       <tr><td>dt</td><td>title dir lang</td></tr>       <tr><td>em</td><td>title dir lang</td></tr>       <tr><td>font</td><td>title dir lang face size color</td></tr>       <tr><td>h1</td><td>title dir lang</td></tr>       <tr><td>h2</td><td>title dir lang</td></tr>       <tr><td>h3</td><td>title dir lang</td></tr>       <tr><td>h4</td><td>title dir lang</td></tr>       <tr><td>h5</td><td>title dir lang</td></tr>       <tr><td>i</td><td>title dir lang</td></tr>       <tr><td>img</td><td>title dir lang src alt border height width align</td></tr>   <tr><td>li</td><td>title dir lang</td></tr>       <tr><td>ol</td><td>title dir lang type start</td></tr>     <tr><td>p</td><td>title dir lang align</td></tr>      <tr><td>pre</td><td>title dir lang</td></tr>       <tr><td>q</td><td>title dir lang</td></tr>       <tr><td>s</td><td>title dir lang</td></tr>       <tr><td>span</td><td>title dir lang</td></tr>      <tr><td>strike</td><td>title dir lang</td></tr>      <tr><td>strong</td><td>title dir lang</td></tr>       <tr><td>sub</td><td>title dir lang</td></tr>       <tr><td>sup</td><td>title dir lang</td></tr>   <tr><td>table</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>   <tr><td>tbody</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>   <tr><td>td</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>   <tr><td>tfoot</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>   <tr><td>th</td><td>title dir lang align valign cellspacing cellpadding border width height</td></tr>   <tr><td>thead</td><td>title dir lang align valign cellspacing cellpadding border width height colspan rowspan</td></tr> <tr><td>tr</td><td>title dir lang align valign cellspacing cellpadding border width height colspan rowspan</td></tr> <tr><td>tt</td><td>title dir lang</td></tr>       <tr><td>u</td><td>title dir lang</td></tr>       <tr><td>ul</td><td>title dir lang type</td></tr>      <tr><td>var</td><td>title dir lang</td></tr>      </tbody> </table> <p></p><p><tt>[1]</tt> The language attribute of the code tag is the file extension of the language used in the code block. It is used as a hint for the syntax highlighter. </p><h2><a name="Escaping_HTML_Tags"></a>Escaping HTML Tags<a href="http://code.google.com/p/support/wiki/WikiSyntax#Escaping_HTML_Tags" class="section_anchor"></a></h2><p>When you want to display html tags directly on your wiki page (as opposed to rendered), you will need to escape each HTML tag.  </p><p>HTML tags can be escaped as shown in the table below: </p><table border="1"> <thead><tr><th>Markup</th><th>Result</th></tr></thead> <tbody> <tr><td> <tt>`&lt;hr&gt;`</tt></td><td><tt>&lt;hr&gt;</tt></td></tr> <tr><td> <tt>{{{&lt;hr&gt;}}}</tt></td><td><tt>&lt;hr&gt;</tt></td></tr> </tbody> </table> <p></p><p><br><br> </p><h1><a name="Comments"></a>Comments<a href="http://code.google.com/p/support/wiki/WikiSyntax#Comments" class="section_anchor"></a></h1><p>The wiki supports embedded comments to help explain the contents of a wiki page. Anything inside the comment block is removed from the rendered page, but is visible when editing or viewing the source for that page. </p><pre class="prettyprint"><span class="tag">&lt;wiki:comment&gt;</span><span class="pln"><br>This text will be removed from the rendered page.<br></span><span class="tag">&lt;/wiki:comment&gt;</span></pre><h1><a name="Gadgets"></a>Gadgets<a href="http://code.google.com/p/support/wiki/WikiSyntax#Gadgets" class="section_anchor"></a></h1><p>You can embed <a href="http://www.google.com/webmasters/gadgets/" rel="nofollow">Gadgets</a> on your wiki pages with the following syntax: </p><pre class="prettyprint"><span class="tag">&lt;wiki:gadget</span><span class="pln"> </span><span class="atn">url</span><span class="pun">=</span><span class="atv">"http://example.com/gadget.xml"</span><span class="pln"> </span><span class="atn">height</span><span class="pun">=</span><span class="atv">"200"</span><span class="pln"> </span><span class="atn">border</span><span class="pun">=</span><span class="atv">"0"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln"> </span></pre><p>Valid attributes are: </p><ul><li><tt>url</tt>: the URL of the gadget </li><li><tt>width</tt>: the width of the gadget </li><li><tt>height</tt>: the height of the gadget </li><li><tt>title</tt>: a title to display above the gadget </li><li><tt>border</tt>: "0" or "1", whether to draw a border around the gadget </li><li><tt>up_*</tt>: Gadget user preference parameters </li><li><tt>caja</tt>: "0" or "1", whether to use Caja to render the gadget.  <a href="http://code.google.com/p/google-caja" rel="nofollow">Caja</a> helps protect users from malicious or accidental errors in third party gadgets. </li></ul><p></p><p><a href="http://code.google.com/p/support/wiki/WorkingWithGoogleGadgets">WorkingWithGoogleGadgets</a> describes how to create gadgets for Google Code. It also provides  a few helpful suggestions that can make it easier to publish gadgets and to integrate with other Google products such as iGoogle. </p><p><a href="http://code.google.com/p/support/wiki/InterestingDeveloperGadgets">InterestingDeveloperGadgets</a> shows some sample gadgets you may want to include on your project pages. </p><h1><a name="Videos"></a>Videos<a href="http://code.google.com/p/support/wiki/WikiSyntax#Videos" class="section_anchor"></a></h1><p>You can embed videos with the following syntax: </p><pre class="prettyprint"><span class="tag">&lt;wiki:video</span><span class="pln"> </span><span class="atn">url</span><span class="pun">=</span><span class="atv">"http://www.youtube.com/watch?v=3LkNlTNHZzE"</span><span class="tag">/&gt;</span></pre><p>Valid attributes are: </p><ul><li><tt>url</tt>: the URL of the video </li><li><tt>width</tt>: the width of the embedded video </li><li><tt>height</tt>: the height of the embedded video </li></ul><p></p><p>Right now we support videos from Youtube and Google Video, but other containers can be added to our <a href="http://code.google.com/p/google-code-project-hosting-gadgets/source/browse/#svn/trunk/video" rel="nofollow">open source gadgets project</a>. </p><h1><a name="Navigation"></a>Navigation<a href="http://code.google.com/p/support/wiki/WikiSyntax#Navigation" class="section_anchor"></a></h1><h2><a name="Table_of_Contents"></a>Table of Contents<a href="http://code.google.com/p/support/wiki/WikiSyntax#Table_of_Contents" class="section_anchor"></a></h2><p>An inline table of contents can be generated from page headers on a wiki page. Add the following syntax to a page in the location the table of contents should be displayed: </p><pre class="prettyprint"><span class="tag">&lt;wiki:toc</span><span class="pln"> </span><span class="atn">max_depth</span><span class="pun">=</span><span class="atv">"1"</span><span class="pln"> </span><span class="tag">/&gt;</span></pre><p>Valid attributes are: </p><ul><li><tt>max_depth</tt>: the maximum header depth to display in the table of contents </li></ul><p></p><h2><a name="Side_navigation"></a>Side navigation<a href="http://code.google.com/p/support/wiki/WikiSyntax#Side_navigation" class="section_anchor"></a></h2><p>You can specify the sidebar for a wiki page by selecting another wiki page that defines your side navigation. The <a href="http://code.google.com/p/doctype/wiki/Articles" rel="nofollow">doctype project</a> uses the sidebar extensively across its wiki. </p><p>One way of adding a sidebar is by setting the #sidebar pragma, as shown below. Alternatively, the sidebar pragma can be left blank if no side navigation is desired.  </p><p></p><table class="wikitable"><tbody><tr><td style="border: 1px solid #ccc; padding: 5px;"> #sidebar TableOfContents </td></tr> </tbody></table><p></p><p>The side navigation that is defined should be in the format of a simple list, as shown below.  </p><pre class="prettyprint"><span class="pln">&nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">Articles</span><span class="pln"> HOWTO articles</span><span class="pun">]</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">ArticlesXSS</span><span class="pln"> </span><span class="typ">Web</span><span class="pln"> security</span><span class="pun">]</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">ArticlesDom</span><span class="pln"> DOM manipulation</span><span class="pun">]</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">ArticlesStyle</span><span class="pln"> CSS </span><span class="kwd">and</span><span class="pln"> style</span><span class="pun">]</span><span class="pln"><br>&nbsp; &nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">ArticlesTips</span><span class="pln"> </span><span class="typ">Tips</span><span class="pln"> </span><span class="kwd">and</span><span class="pln"> tricks</span><span class="pun">]</span><span class="pln"><br>&nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">DOMReference</span><span class="pln"> DOM reference</span><span class="pun">]</span><span class="pln"><br>&nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">HTMLElements</span><span class="pln"> HTML reference</span><span class="pun">]</span><span class="pln"><br>&nbsp; </span><span class="pun">*</span><span class="pln"> </span><span class="pun">[</span><span class="typ">CSSReference</span><span class="pln"> CSS reference</span><span class="pun">]</span></pre><p>A default sidebar page can also be specified for all wiki pages by project owners through the Wiki settings in the Administer tab. If a #sidebar pragma is also specified, it will take precedence on the page. </p><h1><a name="Localizing_Wiki_Content"></a>Localizing Wiki Content<a href="http://code.google.com/p/support/wiki/WikiSyntax#Localizing_Wiki_Content" class="section_anchor"></a></h1><p>Along with the default language for the wiki, which can be set through the Wiki settings in the Administer tab, additional languages are also supported. If more than one language is available, based on a user's language preference (e.g. browser language), the wiki will try to serve the page for the appropriate language. If no wiki page exists for that language, it will fall back to the default language. Comments, however, are shared amongst all translations of a wiki page. </p><p>New translations for a page cannot be added through the web interface and have to be added through the Subversion repository.  </p><p>To add a translation of a page, first checkout the wiki from Subversion: <br><br> <tt>svn checkout https://</tt><b>yourproject</b><tt>.googlecode.com/svn/wiki/</tt> <b>yourdirectory</b> <tt>-username</tt> <b>yourusername</b> </p><p>Then create a new directory under /wiki/ using the two letter ISO-639 code as the name of that directory. Place all translated files in the new directory and submit those changes to the Subversion repository.  </p><p>The following is an example of a valid wiki directory: </p><pre class="prettyprint"><span class="pln">wiki</span><span class="pun">/</span><span class="pln"><br>&nbsp; &nbsp;ja</span><span class="pun">/</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="typ">ProjectHistory</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp; &nbsp; </span><span class="typ">StyleGuide</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp;zh</span><span class="pun">-</span><span class="typ">Hans</span><span class="pun">/</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="typ">ProjectHistory</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp; &nbsp; </span><span class="typ">StyleGuide</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp;zh</span><span class="pun">-</span><span class="typ">Hant</span><span class="pun">/</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; </span><span class="typ">ProjectHistory</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp; &nbsp; </span><span class="typ">StyleGuide</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp;</span><span class="typ">ProjectHistory</span><span class="pun">.</span><span class="pln">wiki<br>&nbsp; &nbsp;</span><span class="typ">StyleGuide</span><span class="pun">.</span><span class="pln">wiki</span></pre><p>Once the files been be submitted to the project's subversion repository, they can now be edited through the wiki's web editor. The process for Mercurial repositories is the same, except that the wiki lives in the root directory (not wiki/) of <tt>https://wiki.</tt><b>yourproject</b><tt>.googlecode.com/hg/</tt>. </p><p>Note: The wiki accepts a subset of ISO-639 two letter language codes, where a few of the codes (such as zh_Hans) contain locale-specific codes. Such locale-specific codes should use a hyphen (zh-Hans) separator. A few example language codes have been specified in the table below. </p><p></p><table border="1"> <tbody><tr> <th> Language (Locale)</th> <th> Directory Name </th> </tr> <tr> <td>Arabic</td> <td>ar</td> </tr> <tr> <td>Bulgarian</td> <td>bg</td> </tr> <tr> <td>Chinese (China)</td> <td>zh-Hans</td> </tr> <tr> <td>Chinese (Taiwan)</td> <td>zh-Hant</td> </tr> <tr> <td>Croatian</td> <td>hr</td> </tr> <tr> <td>Czech</td> <td>cs</td> </tr> <tr> <td>Danish</td> <td>da</td> </tr> <tr> <td>Dutch</td> <td>nl</td> </tr> <tr> <td>English (United Kingdom)</td> <td>en-GB</td> </tr> <tr> <td>English (United States)</td> <td>en-US</td> </tr> <tr> <td>Finnish</td> <td>fi</td> </tr> <tr> <td>French</td> <td>fr</td> </tr> <tr> <td>German</td> <td>de</td> </tr> <tr> <td>Greek</td> <td>el</td> </tr> <tr> <td>Hebrew</td> <td>he</td> </tr> <tr> <td>Hungarian</td> <td>hu</td> </tr> <tr> <td>Italian</td> <td>it</td> </tr> <tr> <td>Japanese</td> <td>ja</td> </tr> <tr> <td>Korean</td> <td>ko</td> </tr> <tr> <td>Norwegian</td> <td>no</td> </tr> <tr> <td>Polish</td> <td>pl</td> </tr> <tr> <td>Portuguese (Brazil)</td> <td>pt-BR</td> </tr> <tr> <td>Romanian</td> <td>ro</td> </tr> <tr> <td>Russian</td> <td>ru</td> </tr> <tr> <td>Slovak</td> <td>sk</td> </tr> <tr> <td>Spanish</td> <td>es</td> </tr> <tr> <td>Swedish</td> <td>sv</td> </tr> <tr> <td>Turkish</td> <td>tr</td> </tr> </tbody></table> <p></p><p><i>The content on this page created by Google is licensed under the <a href="http://creativecommons.org/licenses/by/3.0/" rel="nofollow">Creative Commons Attribution 3.0 License</a>.  User-generated content is not included in this license.</i> </p>
 </div>
 </div>
 </td></tr><tr>
</tr></tbody></table>
 </div>


 



 
 
 
 
<form name="delcom" action="http://code.google.com/p/support/w/delComment.do" method="POST">
 <input type="hidden" name="sequence_num" value="">
 <input type="hidden" name="create_time" value="">
 <input type="hidden" name="mode" value="">
 <input type="hidden" name="pagename" value="WikiSyntax">
 <input type="hidden" name="token" value="9580a521004b4254c1ce953c06fd5ed3">
</form>


 <script src="./WikiSyntax_files/dwiki_scripts_20081003.js"></script>


 <script src="./WikiSyntax_files/prettify.js"></script>
 <script type="text/javascript">
 prettyPrint();
 </script>

<script type="text/javascript" src="./WikiSyntax_files/dit_scripts.js"></script>



  
 
 <script type="text/javascript" src="./WikiSyntax_files/core_scripts.js"></script>
 <script type="text/javascript" src="./WikiSyntax_files/codesite_product_dictionary_ph.pack.04102009.js"></script>
</div> 
<div id="footer" dir="ltr">
 
 <div class="text">
 
 ©2011 Google -
 <a href="http://code.google.com/projecthosting/terms.html">Terms</a> -
 <a href="http://www.google.com/privacy.html">Privacy</a> -
 <a href="http://code.google.com/p/support/">Project Hosting Help</a>
 
 </div>
</div>
 <div class="hostedBy" style="margin-top: -20px;">
 <span style="vertical-align: top;">Powered by <a href="http://code.google.com/projecthosting/">Google Project Hosting</a></span>
 </div>
 
 


 
 



<div class="menuDiv instance0" id="menuDiv-projects-dropdown" style="position: absolute; display: none; top: 19px; left: 1151px; "><b class="categoryTitle projects" style="display: block; ">Projects</b><div class="menuCategory projects first"><a class="menuItem" style="display: block; " href="http://code.google.com/p/avr-introduction/">avr-introduction</a><a class="menuItem" style="display: block; " href="http://code.google.com/p/cprog/">cprog</a></div><b class="categoryTitle starred_projects" style="display: block; ">Starred projects</b><div class="menuCategory starred_projects"><a class="menuItem" style="display: block; " href="http://code.google.com/p/propcontroller/">propcontroller</a></div><div class="menuCategory controls"><hr class="menuSeparator"><a class="menuItem" style="display: block; " href="http://code.google.com/more/">Find developer products...</a><a class="menuItem" style="display: block; " href="http://code.google.com/hosting/">Find open source projects...</a></div></div><div class="menuDiv instance1" id="menuDiv-multilogin-dropdown" style="position: absolute; display: none; top: 19px; left: 969px; "><span class="menuText" style="display: block; "><b>j.moyerman@gmail.com</b></span><a class="menuItem" style="display: block; " href="http://code.google.com/p/support/wiki/WikiSyntax?authuser=1">joshuamoyerman@backdraft.info</a><div class="menuCategory controls first"><hr class="menuSeparator"><a class="menuItem" style="display: block; " href="http://www.google.com/accounts/AddSession?service=code&continue=http%3A%2F%2Fcode.google.com%2Fp%2Fsupport%2Fwiki%2FWikiSyntax"><nobr>Sign in with another account...</nobr></a></div></div></body><span id="skype_highlighting_settings" display="none" autoextractnumbers="1"></span><object id="skype_plugin_object" location.href="http://code.google.com/p/support/wiki/WikiSyntax" location.hostname="code.google.com" style="position: absolute; visibility: hidden; left: -100px; top: -100px; " width="0" height="0" type="application/x-vnd.skype.toolbars.npplugin.4.2.0"></object></html>